package com.dcm.seacher.index;

import java.io.UnsupportedEncodingException;

public class EncodingUtil {
	public static String DEFAULT_ENCODING = "UTF-8";
	
	public static String convert(String src) {
		String dest = src;
		try {
			dest = new String(src.getBytes("ISO8859-1"), DEFAULT_ENCODING);
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return dest;
	}
	
	public static void setEncoding(String en) {
		DEFAULT_ENCODING = en;
	}

}
